import thin_render from "./thin_render.mjs";
import render_content from "./render_content.mjs";

export default function switch_template(container, template) {
  let v = render_content(container, template.switch);
  if (template.case === undefined) {
  } else if (template.case[v] !== undefined) {
    thin_render(container, template.case[v]);
  } else if (template.case.default !== undefined) {
    thin_render(container, template.case.default);
  }
}
